//
//  AppDelegate+Service.swift
//

import MKit
import Toast_Swift
import IQKeyboardManagerSwift

extension AppDelegate {
    
    func registerServices() {
        
        configToast()
        setupKeyboardManager()
    }
    
    private func configToast() {
        ToastManager.shared.duration = 2
        ToastManager.shared.style.messageFont = 16.font
        ToastManager.shared.style.backgroundColor = UIColor.sysBlack
        ToastManager.shared.style.messageColor = UIColor.sysWhite
    }
    
    private func setupKeyboardManager() {
        IQKeyboardManager.shared.enable = true
        IQKeyboardManager.shared.shouldResignOnTouchOutside = true
        IQKeyboardManager.shared.enableAutoToolbar = false
    }
}
